package com.jswl.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.jswl.demo.entity.User;

@Mapper
public interface UserMapper {
	//根据id查询
	User findUserById(Integer id);
	
	//查询全部
	List<User> findAll();
	
	//根据id删除
	User deleteById(Integer id);
	
	//新增数据
	User insertUser();
}
